package com.jus.player.activity;

import android.content.Intent;
import android.webkit.WebView;
import android.widget.Button;

import com.jus.player.R;

public class PrivacyPolicyActivity extends BaseActivity {

    private WebView webView;
    @Override
    protected int initLayout() {
        return R.layout.activity_privacy_policy;
    }

    @Override
    protected void initView() {

        webView = findViewById(R.id.webView);
        webView.loadUrl("http://cdn.bjyoushi.top/app/privacy_policy.html");
        Button agreeButton = findViewById(R.id.agreeButton);
        agreeButton.setOnClickListener(v -> {
            // 返回结果给登录页面
            Intent resultIntent = new Intent();
            resultIntent.putExtra("agreed", true);
            setResult(RESULT_OK, resultIntent);
            finish();
        });
    }

    @Override
    protected void initData() {
    }

}